package cn.wsalix.templet.repository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

import cn.anlaser.repository.SimpleRepository;
import cn.wsalix.templet.entity.SiteTemplet;

public interface SiteTempletRepository extends SimpleRepository<SiteTemplet> {
	@Query("select u from SiteTemplet u where u.templetCode = :templetCode")
	public SiteTemplet findByTempletCodeOne(@Param("templetCode")String templetCode);
	
/*	@Query("select u from SiteTemplet u where u.siteInfo.id = :siteId")
	public SiteTemplet findBySiteId(@Param("siteId")Long siteId);
*/
}
